var app = getApp();

Page({
  data: {
    pinji_list: {}
  },


  onLoad: function (options) {
    this.pinji_list();

  },

  pinji_list: function () { //拼机列表
    var that = this;
    wx.request({
      url: app.api.kzdsurl + app.interface.pinji_list,
      method: 'get',
      data: {},
      header: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      success: function (res) {
        that.setData({
          pinji_list: res.data.data,

        });
        //endInitData
      },
      fail: function (e) {
        wx.showToast({
          title: '网络异常！',
          duration: 2000
        });
      },
    });
  },
  onShareAppMessage: function () {
    return {
      title: '宠物美容学校',
      path: '/pages/index/index',
      success: function(res) {
        // 分享成功
      },
      fail: function(res) {
        // 分享失败
      }
    }
  }



});